package generaladapter.dengwei.it.javassistdemo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        TextView mainTv = (TextView) findViewById(R.id.main_tv);
        mainTv.setText(new Test().toString());

        TextView mainTv2 = (TextView) findViewById(R.id.main_tv2);

        mainTv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });

        mainTv2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
